import request from '@/utils/request';

//同期声

// 多通道拆分
export const multiChannelSplit = (data) => {
    return request.post('/dk/v1/audioPlatform/splitAudioChannel', data);
};
// 音频合并
export const voiceCombine = (data) => {
    return request.post('/dk/v1/audioPlatform/audioMerge', data);
};


// 音色添加
export const timbreAdd = (data) => {
    return request.post('/dk/v1/audioPlatform/addTimbre', data);
};

// 音色列表
export const timbreListGet = (data) => {
    return request.get('/dk/v1/audioPlatform/listTimbre', data);
};

// 音色删除
export const timbreDelete = (data) => {
    return request.post('/dk/v1/audioPlatform/deleteTimbre', data);
};

// 文字生音频
export const timbreGenerate = (data) => {
    return request.post('/dk/v1/audioPlatform/generateVoice', data);
};

// 音色语速响度调节
export const timbreAdjust = (data) => {
    return request.post('/dk/v1/audioPlatform/audioAdjustment', data);
};

// 删除生成历史
export const synthesisHistoryListDelete = data => {
  return request.post('/dk/v1/fileTransfer/deleteHistoryFilesByOper', data);
};

// 对齐波峰谷
export const alignVoicePeak = (data) => {
    return request.post('/dk/v1/audioPlatform/peakAlignment', data);
}

// 重新合成音频
export const reMergeAudios = (data) => {
    return request.post('/dk/v1/audioPlatform/mergeAudios', data);
}
